package cn.sstir.api.common.util;


import cn.sstir.fastspringboot.core.exception.AbstractBaseExceptionEnum;
import cn.sstir.fastspringboot.core.reqres.response.Response;
import cn.sstir.fastspringboot.core.util.RenderUtil;

import javax.servlet.http.HttpServletResponse;

/**
 * @title: WebRenderUtil
 * @description: response输出流返回数据
 * @author: fli
 * @email: fli@sstir.cn
 * @date: 2019/8/13 16:31
 */
public class WebRenderUtil extends RenderUtil {

    public static void renderErrorJson(HttpServletResponse response, AbstractBaseExceptionEnum exceptionEnum){
       renderJson(response,Response.error(exceptionEnum));
    }
}
